<?php

    include '../../Include/IncludeSecure.php';

    $plantillaINFO = new Panel( "../View/Html/InfoUsuario.html" );

    if( $_GET['USR_ID'] != $_SESSION['USR_ID'] ){
        $plantillaINFO->add( "ELIMINAR" , "<a href=\"#\" onclick=\"confirmarEliminarUsuario('{USR_ID}')\">Eliminar |</a>" );
    }

    try {
        $usuarioLogica = FabricaComando::crearConsultarUsuario( $_GET['USR_ID'] );
        $usuario = $usuarioLogica->hacer();
    } catch ( UsuarioLogicaException $Ex ) {
        new ExceptionHandler( $Ex );
    }
        
    $plantillaINFO->add( $usuario->toArray() );
    $plantillaINFO->show();

?>